package net.huashitong.ssydt.pk.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.pk.entity.SsPkYmdxMyMedal;
import net.huashitong.ssydt.pk.entity.SsPkYzddMyMedal;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.20
 */
public class MyMedalVO implements Serializable {

    private static final long serialVersionUID = 5584663005955807362L;

    @ApiModelProperty("金牌数")
    private Integer goldMedal;//金牌数
    @ApiModelProperty("银牌数")
    private Integer silverMedal;//银牌数
    @ApiModelProperty("铜牌数")
    private Integer bronzeMedal;//铜牌数
    @ApiModelProperty("排名")
    private Integer ranking;//排名

    public MyMedalVO(SsPkYmdxMyMedal ssPkYmdxMyMedal) {
        this.goldMedal = ssPkYmdxMyMedal.getGoldMedal();
        this.silverMedal = ssPkYmdxMyMedal.getSilverMedal();
        this.bronzeMedal = ssPkYmdxMyMedal.getBronzeMedal();
    }

    public MyMedalVO(SsPkYzddMyMedal ssPkYzddMyMedal) {
        this.goldMedal = ssPkYzddMyMedal.getGoldMedal();
        this.silverMedal = ssPkYzddMyMedal.getSilverMedal();
        this.bronzeMedal = ssPkYzddMyMedal.getBronzeMedal();
    }

    public Integer getGoldMedal() {
        return goldMedal;
    }

    public void setGoldMedal(Integer goldMedal) {
        this.goldMedal = goldMedal;
    }

    public Integer getSilverMedal() {
        return silverMedal;
    }

    public void setSilverMedal(Integer silverMedal) {
        this.silverMedal = silverMedal;
    }

    public Integer getBronzeMedal() {
        return bronzeMedal;
    }

    public void setBronzeMedal(Integer bronzeMedal) {
        this.bronzeMedal = bronzeMedal;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }
}
